package com.md.test;

public class Demo01 {
	public static void main(String[]args) {
		int[]a= {11,22,33,44,55};
		method(a);
	}
	public static void method(int[]num) {
		for(int i=0;i<num.length;i++) {
		if(i==0) {
			System.out.print("["+num[i]+",");
		}else if(i==num.length-1) {
			System.out.print(num[i]+"]");
		}else {
			System.out.print(num[i]+",");
		}
		}
	}
}
